package com.hhkj.study.admin.order.service.extend;

import com.hhkj.study.admin.order.entity.Order;
import com.hhkj.study.admin.order.model.podo.OrderDo;
import com.hhkj.study.admin.order.model.podo.OrderPo;
import com.hhkj.study.admin.order.model.res.OrderRes;
import com.ruoyi.common.base.biz.service.extend.BaseExtendService;
import org.apache.commons.lang3.tuple.Pair;

import java.util.List;
import java.util.Map;

/**
*
* @author SERVER
* @since 2024-09-18
*/

public interface OrderExtendService extends BaseExtendService<Order, OrderDo, OrderPo> {

    /**
     * 统计用户订单
     * @param userIdList
     * @return
     */
    Map<Long, Pair<Integer, Integer>> statUserOrder(List<Long> userIdList);

    /**
     * 用户订单列表
     * @param userId
     * @return
     */
    List<OrderRes> listByUserId(Long userId);
}